-- GENERATED SPELL FOR [Wing Commander Brack] --


function spell0_19401(pUnit, Event) --6Aerial Assault Flight (Horde),n/a--
pUnit:FullCastSpellOnTarget(33825,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19401', 608, 1)
end

function spell1_19401(pUnit, Event) --6Gateways Murket and Shaadraz,n/a--
pUnit:FullCastSpellOnTarget(33659,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19401', 593, 1)
end

function spell2_19401(pUnit, Event) --@Taxi - Reaver\'s Fall to Spinebreaker Ridge,n/a--
pUnit:FullCastSpellOnTarget(34578,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19401', 589, 1)
end

function Sorts_19401(pUnit, Event)
local choix_sorts_19401 = math.random(0, 2)
if choix_sorts_19401 == 0 then
pUnit:RegisterEvent('spell0_19401', 1, 1)
end
if choix_sorts_19401 == 1 then
pUnit:RegisterEvent('spell1_19401', 1, 1)
end
if choix_sorts_19401 == 2 then
pUnit:RegisterEvent('spell2_19401', 1, 1)
end
end

function mob19401_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19401', math.random(1500, 3000), 1)
end

function mob19401_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19401_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19401_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19401, 1, 'mob19401_Action')
RegisterUnitEvent(19401, 2, 'mob19401_Leave')
RegisterUnitEvent(19401, 3, 'mob19401_Kill')
RegisterUnitEvent(19401, 4, 'mob19401_Die')
